package com.itheima.Task02;

public class Tclass {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class clazz = Student.class;
        Object o = clazz.newInstance();
        System.out.println(o);


        Class clazz2 = Class.forName("com.itheima.Task02.Student");
        Object o1 = clazz2.newInstance();
        System.out.println(o1);





    }
}
